package bb.lanxing.model.routebook;

import kotlin.jvm.internal.DefaultConstructorMarker;

public enum RouteBookWayPointState {
    TYPE_INIT_MY_LOCATION(0), TYPE_INIT(1), TYPE_POI_SEARCHING(3), TYPE_POI_SEARCH_SUCCESS(4), TYPE_POI_SEARCH_FAILED(5);

    public static final Companion Companion = new Companion(null);
    private final int type;

    RouteBookWayPointState(int i) {
        this.type = i;
    }

    public final int getType() {
        return this.type;
    }

    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public final RouteBookWayPointState from(int i) {
            RouteBookWayPointState[] values;
            for (RouteBookWayPointState routeBookWayPointState : RouteBookWayPointState.values()) {
                if (routeBookWayPointState.getType() == i) {
                    return routeBookWayPointState;
                }
            }
            return null;
        }
    }
}